package net.joint_painting.shared.model;

import java.io.Serializable;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;

/**
 * @author CAM
 * @version $Revision: 1.0 $
 */
public class Work implements Serializable {

    /**
	 * 
	 */
    private static final long serialVersionUID = 2471542942388182631L;

    private String surfaceId = "";

    private Date date = new Date();

    private List<Line> lines = new LinkedList<Line>();

    private String surface = "";

    public Work() {
    }

    /**
     * Constructor for Work.
     * 
     * @param id
     *            String
     * @param lines
     *            List<Line>
     * @param surface
     *            String
     */
    public Work(String id, List<Line> lines, String surface) {
	this.surfaceId = id;
	this.lines = lines;
	this.surface = surface;
    }

    /**
     * Method addLines.
     * 
     * @param lines
     *            List<Line>
     */
    public void addLines(List<Line> lines) {
	this.lines.addAll(lines);
    }

    /**
     * Method getDate.
     * 
     * @return Date
     */
    public Date getDate() {
	return date;
    }

    /**
     * Method getId.
     * 
     * @return String
     */
    public String getId() {
	return surfaceId;
    }

    /**
     * Method getLines.
     * 
     * @return List<Line>
     */
    public List<Line> getLines() {
	return lines;
    }

    /**
     * Method getSurface.
     * 
     * @return String
     */
    public String getSurface() {
	return surface;
    }

    /**
     * Method setId.
     * 
     * @param id
     *            String
     */
    public void setId(String id) {
	this.surfaceId = id;
    }

    /**
     * Method setLines.
     * 
     * @param lines
     *            List<Line>
     */
    public void setLines(List<Line> lines) {
	this.lines = lines;
    }

    /**
     * Method setSurface.
     * 
     * @param surface
     *            String
     */
    public void setSurface(String surface) {
	this.surface = surface;
    }

}
